<?php
/**
 * Created on 22.12.2005
 * 
 * Captures HTML code for tags:
 * 
 * insertHtml
 * replaceInnerHtml
 */

class ajax_htmlHandler
{
    
    function startElement (& $sender, $attrs, $line)
    {
        $sender->appendCode('$__replacement = "";');
        $sender->appendCode('$out->pushListener(new phpinchains_psp_OutputListener());');
    }

    function endElement (& $sender)
    {
        $sender->appendCode('$__replacement = $out->getBuffer(); $out->popListener();');
    }

}

?>